package constant.milk.cashbook.apt;

import java.util.HashMap;

import android.content.Context;
import constant.milk.cashbook.database.DbAdapter;
import constant.milk.cashbook.database.DbInsertQuery;

public class IncheonSetting
{
	private DbInsertQuery insertQuery;
	
	public IncheonSetting(Context context, DbAdapter db)
	{
		insertQuery = new DbInsertQuery(context, db);
	}
	
	public void Setting() throws Exception
	{
		setData("계양구", "202", "131");
		setData("부평구",	"232", "156");
		setData("남동구",	"258", "168");
		setData("서구",	"241", "135");
		setData("동구",	"236", "154");
		setData("연수구",	"248", "162");
		setData("중구", "254",	"128");
		setData("강화군",	"182", "103");
		setData("웅진군", "0",	"0");
	}
	
	private void setData(String name, String meib, String junse) throws Exception
	{
		HashMap<String, String> map = new HashMap<String, String>();
		
		map.put("title", "인천광역시");
		map.put("name", name);
		map.put("meib", meib);
		map.put("junse", junse);
		
		insertQuery.setAptData(map);
	}
}
